package com.yy.finvideoplayer.floatwindow

/**
 * 浮窗参数
 * @Description: FloatParams
 * @Author: yiw89
 * @CreateDate: 2025/9/1 14:12
 * @Version: 1.0
 */
class FloatParams : Cloneable {
    var x: Int = 0 //中心点x
    var y: Int = 0 //中心点y
    var w: Int = 0 //宽
    var h: Int = 0 //高
    var round: Int = 0 //圆角 SDK_INT >= 21
    var fade: Float = 1f //透明度0-1 SDK_INT >= 11
    var canMove: Boolean = true //是否可以移动
    var canCross: Boolean = true //是否可以越界

    var systemFloat: Boolean = false //TRUE系统浮窗需要权限　FALSE界面内浮窗


    public override fun clone(): FloatParams {
        var stu: FloatParams? = null
        try {
            stu = super.clone() as FloatParams
        } catch (e: CloneNotSupportedException) {
            e.printStackTrace()
        }
        return stu!!
    }
}